package com.lxs.legou.item.service.impl;

import com.lxs.legou.core.po.BaseTreeEntity;
import com.lxs.legou.core.service.impl.CrudServiceImpl;
import com.lxs.legou.item.controller.BrandController;
import com.lxs.legou.item.dao.BrandDao;
import com.lxs.legou.item.po.Brand;
import com.lxs.legou.item.service.IBrandService;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl extends CrudServiceImpl<Brand> implements IBrandService {

    @Override
    public List<BaseTreeEntity> selectTag(Long id) {
        return  ((BrandDao)getBaseMapper()).selectTag(id);
    }

    @Override
    public void delTree(Long id) {
        ((BrandDao)getBaseMapper()).delTree(id);
    }

    @Override
    public void insertTree(Long id, Long categoryId) {
        ((BrandDao)getBaseMapper()).insertTree(id,categoryId);
    }


}
